package com.waitingresult.thread;

/**
 * All right reserved,Designed By WangShuai
 *
 * @author : WangShuai
 * @version : V1.0
 * @ClassName : ThreadLocalDemo
 * @Description : ThreadLocal的用例
 *  ThreadLocal 是基于线程级别的对象， 当线程存在 他的这个 ThreadLocal 就会存在， 当线程销毁 ThreadLocal也会销毁
 *
 * @date : 2022/9/18 16:57
 */
public class ThreadLocalDemo {
    public static void main(String[] args) {
        ThreadLocal threadLocal = new ThreadLocal<>();
        threadLocal.set("1");

    }
}
